.class Llt/farmis/libraries/notificationcontroller/NotificationController$2;
.super Ljava/lang/Object;
.source "NotificationController.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Llt/farmis/libraries/notificationcontroller/NotificationController;->cancelActiveNotifications(Ljava/util/List;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Llt/farmis/libraries/notificationcontroller/NotificationController;

.field final synthetic val$activeNotificationList:Ljava/util/List;


# direct methods
.method constructor <init>(Llt/farmis/libraries/notificationcontroller/NotificationController;Ljava/util/List;)V
    .locals 0

    .line 923
    iput-object p1, p0, Llt/farmis/libraries/notificationcontroller/NotificationController$2;->this$0:Llt/farmis/libraries/notificationcontroller/NotificationController;

    iput-object p2, p0, Llt/farmis/libraries/notificationcontroller/NotificationController$2;->val$activeNotificationList:Ljava/util/List;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 4

    .line 928
    iget-object v0, p0, Llt/farmis/libraries/notificationcontroller/NotificationController$2;->val$activeNotificationList:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_0
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;

    .line 929
    invoke-virtual {v1}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getDeliveryFlags()Llt/farmis/libraries/bitflags/BitFlags;

    move-result-object v2

    const/4 v3, 0x2

    invoke-interface {v2, v3}, Llt/farmis/libraries/bitflags/BitFlags;->isSet(I)Z

    move-result v2

    if-nez v2, :cond_0

    .line 934
    iget-object v2, p0, Llt/farmis/libraries/notificationcontroller/NotificationController$2;->this$0:Llt/farmis/libraries/notificationcontroller/NotificationController;

    iget-object v2, v2, Llt/farmis/libraries/notificationcontroller/NotificationController;->mNotificationManager:Landroidx/core/app/NotificationManagerCompat;

    invoke-virtual {v1}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getUsableID()I

    move-result v3

    invoke-virtual {v2, v3}, Landroidx/core/app/NotificationManagerCompat;->cancel(I)V

    .line 936
    iget-object v2, p0, Llt/farmis/libraries/notificationcontroller/NotificationController$2;->this$0:Llt/farmis/libraries/notificationcontroller/NotificationController;

    iget-object v2, v2, Llt/farmis/libraries/notificationcontroller/NotificationController;->mNotificationManager:Landroidx/core/app/NotificationManagerCompat;

    invoke-virtual {v1}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getConfiguration()Llt/farmis/libraries/notificationcontroller/data/configurations/NotificationConfiguration;

    move-result-object v1

    invoke-interface {v1}, Llt/farmis/libraries/notificationcontroller/data/configurations/NotificationConfiguration;->obtainSummaryNotificationID()I

    move-result v1

    invoke-virtual {v2, v1}, Landroidx/core/app/NotificationManagerCompat;->cancel(I)V

    goto :goto_0

    :cond_1
    return-void
.end method
